<template>
    <div class="Log">
      <Header></Header>
      <img src="../assets/img/toindex.png" alt="" class="toIndex" @click="toindex">
      <div class="main">
        <div class="main-title">
          <img src="../assets/img/arrow.png" alt="">
          <span>日志查询</span>
        </div>
        <div class="keyWordsSearch">
          <input type="text" placeholder="输入关键字">
          <el-button @click="search"> 搜索</el-button>
        </div>

        <div class="main-choose">
          <span class="choose">筛选条件</span>
          <span class="chooseTime">时间筛选</span>
          <el-date-picker
            v-model="value3"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期">
          </el-date-picker>
          <button>确认</button>
        </div>
        <el-table
          :data="tableData"
          style="width: 100%;height: 500px"
          max-height="500"
          :header-cell-style="{background:'#03648a',color:'#24C2FF'}"
          :row-class-name="tableRowClassName"
        >
          <el-table-column prop="people" label="人员" width="390"></el-table-column>
          <el-table-column prop="type" label="申请类型" width="390"   column-key="date"
                           :filters="[{text: '查询', value: '查询'},{text: '审批', value: '审批'}]"
          ></el-table-column>
          <el-table-column prop="num" label="次数/时间" width="390"></el-table-column>
          <el-table-column prop="time" label="时间" width="390"></el-table-column>
          <el-table-column prop="operation" label="操作">
            <span>同意</span>
            <span style="margin-left: 30px">拒绝</span>
          </el-table-column>
        </el-table>
      </div>
      <div class="paging">
        <el-pagination
          background
          layout="prev, pager, next"
          :total="100">
        </el-pagination>
      </div>
    </div>
</template>

<script>
  import Header from '../components/header'
    export default {
        name: "log",
      components:{
        Header
      },
      data(){
        return{
          tableData:[
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },
            {
              people:'姜俊杰',
              type:'日志查询',
              num:'10次',
              time:'2021/05/31 10:13',
            },

          ],
          value1: '',
        }
      },
      methods:{
        search(){
          axios({
            get
          })
        },
        tableRowClassName({ rowIndex}) {
          if (rowIndex%2 === 1) {
            return 'warning-row';
          } else if (rowIndex%2 === 0) {
            return 'success-row';
          }
          return '';
        },
        toindex(){
          this.$router.push({
            name:'Index'
          })
        },
      },
    }
</script>

<style lang="less" scoped>
  .Log{
    width: 100%;
    height: 100%;
    position: absolute;
    background: url("../assets/img/bg.png");
    display: flex;
    flex-direction: column;
    align-items: center;
  .toIndex{
    align-self: flex-start;
    position: absolute;
    top: 40%;
  }
  .main{
    margin-top: 70px;
    width: 1800px;
    height: 700px;
    background: linear-gradient(180deg,rgba(36,194,255,0.20), rgba(36,194,255,0.00) 93%);
    border: 2px solid #24c2ff;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 30px;
    .main-title{
    margin-top: 20px;
  span{
    width: 64px;
    height: 22px;
    font-size: 16px;
    font-weight: 800;
    color: #24c2ff;
    margin-left: 10px;
  }
  }
    .keyWordsSearch{
      margin: 0 auto;
      width: 900px;
      display: flex;
      align-items: center;
      input{
        width: 750px;
        height: 44px;
        opacity: 1;
        background: #101a2a;
        border: 2px solid #24c2ff;
        outline: none;
        text-indent: 10px;
      }
      ::-webkit-input-placeholder {
        color: #01c4f7;
        font-size: 14px;
      }
      ::-moz-placeholder {
        color: #01c4f7;
        font-size: 14px;
      }
      :-ms-input-placeholder {
        color: #01c4f7;
        font-size: 14px;
      }
      button{
        margin-left: 12px;
        width: 114px;
        height: 48px;
        opacity: 1;
        background: #24c2ff;
        border: 2px solid #24c2ff;
        color: white;
      }
    }
  .main-choose{
    margin-top: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
  .choose{
    width: 64px;
    height: 22px;
    font-size: 16px;
    font-weight: 800;
    color: #24c2ff;
  }
  .chooseTime{
    margin-right: 20px;
    margin-left: 50px;
    width: 56px;
    height: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #24c2ff;
  }
  button{
    width: 70px;
    height: 32px;
    background:  #01c4f7;
    outline: none;
    border: none;
   margin-left: 12px;
    color: white;
  }
    /deep/.el-date-editor--daterange.el-input,
    /deep/.el-date-editor--daterange.el-input__inner,
    /deep/.el-date-editor--timerange.el-input,
    /deep/.el-date-editor--timerange.el-input__inner{
      width: 275px;
      height: 34px;
    }
    /deep/.el-date-editor .el-range-separator{
      line-height: 26px;
      color: #01c4f7;
    }
    /deep/.el-date-editor .el-range__icon{
      font-size: 22px;
      line-height: 27px;
      color: #01c4f7;
    }
    /deep/.el-date-editor .el-range-input{
      width: 40%;
      color: #01c4f7;
      background: #144763;
    }
    /deep/.el-range-editor.el-input__inner{
      background: #144763;
      outline: none;
      border: none;
      border-radius: 0px;
    }
    /deep/.el-date-editor .el-range__close-icon{
      display: none;
    }

   /deep/ .el-date-editor .el-range-input::-webkit-input-placeholder {
      color: #01c4f7;
    }
    /deep/.el-date-editor .el-range-input::-ms-input-placeholder {
      color: #01c4f7;
    }





  }
  /deep/.el-table .warning-row {
    background: #12364f;
    color: #24C2FF;
  }
  /deep/.el-table .success-row {
    background: #144763;
    color: #24C2FF;
  }

  /deep/.el-table--enable-row-hover .el-table__body tr:hover>td {
    background-color:  #0f374d !important;
    color: #01c4f7;
  }

    /deep/  .el-table td,/deep/ .el-table th.is-leaf{
      border-bottom:none
    }
    /deep/ .el-table--border::after, .el-table--group::after, .el-table::before{
      z-index: -1
    }


    /deep/.el-table .cell,/deep/ .el-table--border td:first-child .cell,/deep/ .el-table--border th:first-child .cell{
      padding-left: 30px;
    }

    /deep/.el-table--enable-row-hover .el-table__body tr:hover>td {
      background-color:  #0e283b !important;
      color: #01c4f7;
    }

    /deep/.el-table__header tr, /deep/.el-table__header th {
      padding: 0;
      height: 45px;
    }

  /deep/ .el-dialog__header {
    padding: 0;
    background:  #101a2a;
  }
  /deep/  .el-dialog__body{
    background:  #101a2a;
  }
    /deep/ .el-table__body-wrapper::-webkit-scrollbar {
      width: 2px; // 横向滚动条
      height: 0px; // 纵向滚动条 必写
      background: #0e283b;
    }
    // 滚动条的滑块
    /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
      background-color: #01c4f7;
      border-radius: 10px;
    }





  }
  .paging{
    margin-top: 14px;
    margin-right: 54px;
    align-self: flex-end;
  /deep/ .el-pagination.is-background .btn-next, /deep/ .el-pagination.is-background .btn-prev, /deep/ .el-pagination.is-background .el-pager li{
    width: 32px;
    height: 32px;
    background: rgba(1,196,247,0.20);
    color: #24C2FF;
    border-radius: 5px;
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.10);
  }
  }
  }
</style>
